/*
 * Copyright (c) 2005, the JUNG Project and the Regents of the University of
 * California All rights reserved.
 *
 * This software is open-source under the BSD license; see either "license.txt"
 * or http://jung.sourceforge.net/license.txt for a description.
 *
 * Created on Jul 6, 2005
 */

package com.davetrudes.jung.client.visualization.control;

import com.davetrudes.jung.client.graphics.Point;


/**
 * a base class for GraphMousePlugin instances. Holds some members
 * common to all GraphMousePlugins
 * @author thomasnelson
 *
 */
public abstract class AbstractGraphMousePlugin implements GraphMousePlugin {

	/**
	 * modifiers to compare against mouse event modifiers
	 */
   // protected int modifiers;

    /**
     * the location in the View where the mouse was pressed
     */
    protected Point down;


    /**
     * create an instance with passed values
     * @param modifiers
     */
    public AbstractGraphMousePlugin(/*int modifiers*/) {
       // this.modifiers = modifiers;
    }

    /**
     * getter for mouse modifiers
     */
//    public int getModifiers() {
//        return modifiers;
//    }

    /**
     * setter for mouse modifiers
     */
//    public void setModifiers(int modifiers) {
//        this.modifiers = modifiers;
//    }

    /**
     * check the mouse event modifiers against the
     * instance member modifiers. Default implementation
     * checks equality. Can be overridden to test with a mask
     */
//    public boolean checkModifiers(MouseEvent e) {
//        return e.getModifiers() == modifiers;
//    }

}
